package br.edu.unilasalle.simon_api.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import br.edu.unilasalle.simon_api.dao.IFormPagtoDao;
import br.edu.unilasalle.simon_api.dao.IGenericDao;
import br.edu.unilasalle.simon_api.domain.FormaPagamento;
import br.edu.unilasalle.simon_api.service.IFormPagtoService;

@Service
public class FormPagtoService extends GenericService<FormaPagamento, Long> implements IFormPagtoService {
	
	@Autowired
	private IFormPagtoDao dao;
	
	public IFormPagtoDao getFormPagtoDao() {
		return dao;
	}
	
	public void setFormPagtoDao(IFormPagtoDao dao) {
		this.dao = dao;
	}

	@Override
	public IGenericDao<FormaPagamento, Long> getEntityDao() {
		return this.dao;
	}

	@Override
	public List<FormaPagamento> findAllAtivo() {
		return this.dao.findAllAtivo();
	}
	
}
